package cn.schoolwow.quickdao.test.module.business.user.dml.json.testcase;

import cn.schoolwow.quickdao.test.module.business.user.dml.json.flow.add.AddUserJSONProcessFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.add.CheckAddUserResultFlow;
import cn.schoolwow.quickdao.test.module.business.user.dml.user.flow.add.RebuildUserFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class AddUserJSONTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new RebuildUserFlow())
                .next(new AddUserJSONProcessFlow())
                .next(new CheckAddUserResultFlow())
                .execute();
    }

    @Override
    public String name() {
        return "添加用户测试用例-JSON格式";
    }
}
